# Maintainer: Jiachen YANG <farseerfc@archlinux.org>
# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>

pkgname=otf-ipamjfont
pkgver=006.01
_pkgver=${pkgver/./}
pkgrel=2
pkgdesc="Japanese outline Mincho fonts implementing IVS compliant with Hanyo-Denshi collection (based on IPAex Mincho fonts)"
arch=('any')
url="https://mojikiban.ipa.go.jp/"
license=('custom')
groups=('ipa-fonts')
#source=("https://oscdl.ipa.go.jp/IPAmjMincho/ipamjm${_pkgver}.zip")
source=("https://mojikiban.ipa.go.jp/OSCDL/IPAmjMincho/ipamjm${_pkgver}.zip")
sha1sums=('efbd663a9e6ddfdc6b43002d29b9dbd191878b69')

package() {
  cd "$srcdir"

  install -d "${pkgdir}/usr/share/fonts/OTF"
  install -m644 *.ttf "${pkgdir}/usr/share/fonts/OTF/"

  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 IPA_Font_License_Agreement_v1.0.txt Readme.txt \
                "${pkgdir}/usr/share/licenses/${pkgname}/"
}
